import request from "@/services";
import md5 from "md5";
const creadata = 'xhjmmj'

// 获取管理员列表
export const getAccount = () => request.get('/admin/list')
// 删除管理员
export const postAccount = (data) => request.post('/admin/delete', data)
// 添加管理员
export const postaddACC = (data) => request.post('/admin/add', {...data,password:md5(data.password+creadata)})
// 修改管理员
export const postUpdata = (data) => request.post('/admin/update',data)